package org.dromara.germbank.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.*;
import lombok.Data;
import org.dromara.germbank.domain.BusFaqQuestion;

/**
 * 常见问题业务对象
 *
 * @author congxing
 */
@Data
@AutoMapper(target = BusFaqQuestion.class, reverseConvertGenerate = false)
public class BusFaqQuestionBo {

    /**
     * 问题标题
     */
    @NotBlank(message = "问题标题不能为空")
    @Size(max = 200, message = "问题标题长度不能超过{max}")
    private String faqTitle;

    /**
     * 问题分类
     */
    @Size(max = 100, message = "问题分类长度不能超过{max}")
    private String faqCategory;

    /**
     * 问题答案
     */
    @NotBlank(message = "问题答案不能为空")
    private String faqAnswer;

    /**
     * 内容摘要
     */
    private String faqSummary;

    /**
     * 缩略图URL
     */
    @Size(max = 255, message = "缩略图URL长度不能超过{max}")
    private String faqThumb;

    /**
     * 是否置顶：0否 1是
     */
    @NotNull(message = "是否置顶不能为空")
    private Integer faqIsTop;

    /**
     * 排序权重
     */
    @NotNull(message = "排序权重不能为空")
    private Integer faqSort;

    /**
     * 浏览量
     */
    @NotNull(message = "浏览量不能为空")
    private Integer faqViews;

}
